package com.sichen.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sichen.common.utils.PageUtils;
import com.sichen.member.entity.MemberEntity;
import com.sichen.member.exception.PhoneException;
import com.sichen.member.exception.UsernameException;
import com.sichen.member.vo.MemberLoginVo;
import com.sichen.member.vo.MemberRegistVo;
import com.sichen.member.vo.SocialUserVo;

import java.util.Map;

/**
 * 会员
 *
 * @author sichen
 * @email 15837757959@163.com
 * @date 2022-05-14 14:45:21
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo memberRegistVo);

    void checkPhoneUnique(String phone) throws PhoneException;

    void checkUsernameUnique(String userName) throws UsernameException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity login(SocialUserVo socialUserVo) throws Exception;
}

